home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 March / PCWorld_2002-03_cd.bin / Software / TemaCD / xteq / setup.exe / {app} / plugins / XQ Photo Editor Clear.xpl < prev    next >
Text File  |  2001-04-28  |  1KB  |  52 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="5"
  3. "COUNT"="1"
  4. "UIPATH 1"="Program Options\Microsoft Office\MS Office 2000\Photo Editor"
  5. "UIPATH 2"="Program Options\Microsoft Office\MS Office XP\Photo Editor"
  6. "NAME"="Clear Items"
  7. "VERSION"="1.02"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Clear recent file list"
  10. "TEXT 2"="Clear Radio Links"
  11. "TEXT 3"="C"
  12. "TEXT 4"="D"
  13. "DESCRIPTION 1"="If you do not want that other people can see the items you have opened, click the button."
  14. "AUTHOR"="Xteq Systems"
  15. "CONTACTURL"="http://www.xteq.com/"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  17. "COMMENT 1"=" "
  18. "COMMENT 2"="Aren't plug-in comments great? <g> - CptSiskoX"
  19. "COMMENT 3"="http://www.fortunecity.com/meltingpot/ny/413/"
  20.  
  21.  
  22. sP="HKEY_CURRENT_USER\Software\Microsoft\Photo Editor\3.0\Microsoft Photo Editor\"
  23.  
  24. Sub Plugin_Initialize 
  25.   If RegPathExists(sP)=false then
  26.      Disable()
  27.   end if 
  28. End Sub
  29.  
  30. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  31.  if ElementIndex=1 then     
  32.     for l=1 to 30
  33.         s="LastFile" & l
  34.         if RegValueExists(sP & s) then
  35.            Call RegDeleteValue(sP & s)
  36.         end if
  37.  
  38.         s="LastType" & l
  39.         if RegValueExists(sP & s) then
  40.            Call RegDeleteValue(sP & s)
  41.         end if
  42.  
  43.     Next
  44.  
  45.     Call MsgInformation("Cleared!")
  46.  end if
  47.  
  48. End Sub
  49.  
  50. Sub Plugin_Terminate 
  51. End Sub
  52.